import request from "@/views/utils/request";
//暴露axios所需要的函数 外卖系统12个
export const checkLogin = (data) => {
  return request.post("/users/checkLogin",data)
}
// axios  post  data:{} 发送给后端数据
//        get    data:{params:{}}   将后端的数据 放到 parans:{}
export const accountInfo = (data)=>{
  return  request.get('/users/accountinfo',{params:data})
}
//3.获取账号列表
export const jszh = (data)=>{
  return  request.get('/users/list',{params:data})
}
//4.删除账号
export const dele = (data)=>{
  return  request.get('/users/del',{params:data})
}
//4.删除账号
export const deles = (data)=>{
  return  request.get('/users/batchdel',{params:data})
}
//6.修改账号
export const xg = (data)=>{
  return  request.post('/users/edit',data)
}
//7.添加账号
export const add = (data) => {
  return request.post("/users/add",data)
}
//7.修改账号
export const edit = (data) => {
  return request.get("/users/edit",{params:data})
}
//8.检查原密码
export const checkoldpwd = (data)=>{
  return  request.get('/users/checkoldpwd',{params:data})
}
//8.修改密码
export const editpwd = (data)=>{
  return  request.get('/users/editpwd',{params:data})
}